{% extends 'dish_type/dish_type_base.html' %}
{% block title %}
    修改菜品
{% endblock %}
{% block content%}
    <ol class="breadcrumb">
          <li><a href="#">首页</a></li>
          <li><a href="#">菜品管理</a></li>
          <li class="active">修改菜品名</li>
    </ol>
    <form class="form-horizontal" action="{{ url_for("dish_type.update_dish_type") }}" method="POST">
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">老菜品名</label>
            <div class="col-sm-10">
                <label>
                    <select class="form-control" name="old_dish_type_name">
                        {% for dish_type in dish_types %}
                           <option value="{{ dish_type.dish_type_name }}">{{ dish_type.dish_type_name }}</option>
                        {% endfor %}
                   </select>
                </label>
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">新菜品名</label>
            <div class="col-sm-10">
              <input type="text" name="dish_type_name" class="form-control" id="inputPassword3" placeholder="新菜品名">
            </div>
          </div>

          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-primary">修改</button>
            </div>
          </div>
        </form>
    <ul>
        {% for error in get_flashed_messages() %}
            <li>{{ error }}</li>
        {% endfor %}
    </ul>
{% endblock %}